package main

import (
	"os"
	"vector/tools"
)

func main() {
	fb, _ := os.ReadFile("C:\\Users\\nanjiang6\\Downloads\\xxx.pcm")
	audio := tools.Audio{WavFileName: "C:\\Users\\nanjiang6\\Downloads\\xxx.wav"}
	err := audio.AddWavHeader(fb, 1, 16000, 16)
	if err != nil {
		panic(err)
	}
	_ = audio.PlayWav()
}
